﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SignalShopBase;

namespace TestModule
{
    public class RandomModule : SignalShopModule
    {
        public RandomModule() : base(NAME, PATH) {}

        public override void Execute(Signal target, Signal source)
        {
            int N = target.N;

            for (int n = -N; n <= N; n++)
            {
                target[n].Set(Util.Random.NextDouble() - 0.5, 0);
            }
        }

        private const string NAME = "Random";
        private const string PATH = "Generate/Random";
    }
}
